﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace sws
{
    class Program03
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请输入一个四位数的整数：");
            string s = Console.ReadLine();

            int S = Convert.ToInt32(s);

            Console.WriteLine("用户输入的千位为" + S / 1000 + "百位为" + S % 1000 / 100 + "十位为" + S % 100 / 10 + "个位为" + S % 10);
            Console.ReadLine();
        }
    }
}
